Implement gdk_beep() (woohoo!)
#include "gdkkeysyms.h"
#include "gdkprivate-fb.h"
#include <unistd.h>
+#include <errno.h>
#include <sys/types.h>
#include <fcntl.h>
#include <time.h>
return retval;
}
+void
+gdk_beep (void)
+{
+ static int pitch = 600, duration = 100;
+ gulong arg;
+
+ if(!keyboard)
+ return;
+
+ /* Thank you XFree86 */
+ arg = ((1193190 / pitch) & 0xffff) |
+ (((unsigned long)duration) << 16);
+
+ ioctl(keyboard->fd, KDMKTONE, arg);
+}
+
void
keyboard_init(void)
{
}
-void
-gdk_beep (void)
-{
-}
-
extern void keyboard_shutdown(void);
void